package com.duyj.client.order.feign;

import com.duyj.client.order.model.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order")
public interface OrderFeignService {

    @GetMapping("/getOrder")
    Order getOrder(@RequestParam Long id);

    @PostMapping("/postOrder")
    void postOrder(@RequestBody Order order);

}
